1.2.7.1. alpha.security.ArrayBound (C)
Warn about buffer overflows (older checker).
Examples:
void test() { char *s = ""; char c = s[1]; // warn } struct seven_words { int c[7]; }; void test() { struct seven_words a, *p; p = &a; p[0] = a; p[1] = a; p[2] = a; // warn } // note: requires unix.Malloc or // alpha.unix.MallocWithAnnotations checks enabled. void test() { int *p = malloc(12); p[3] = 4; // warn } void test() { char a[2]; int *b = (int*)a; b[1] = 3; // warn }